import org.antlr.v4.runtime.CharStreams;
import org.antlr.v4.runtime.CommonTokenStream;

public class 翻译器 {
    
    public static String 翻译(String makefile源码){
        var input = CharStreams.fromString(makefile源码);
        var lexer = new MakeLexer(input);// 词法分析器，将输入文本转换为词法符号
        var tokens = new CommonTokenStream(lexer);// 词法符号流
        var parser = new MakeParser(tokens);// 语法分析
        parser.rules();
        return null;
    }
    
}
